﻿using System;

namespace ErrorDumper {
    [AttributeUsage(AttributeTargets.Property)]
    public class ExceptionPropertyAttribute : Attribute {

        private readonly string _exceptionPropertyName;

        public ExceptionPropertyAttribute() { }

        public ExceptionPropertyAttribute(string exceptionPropertyName) {
            _exceptionPropertyName = exceptionPropertyName;
        }

        public string ExceptionPropertyName {
            get { return _exceptionPropertyName; }
        }
    }
}